<?php
require_once(dirname(__FILE__)."/../core/safeParam.php");
require_once('../includes/config.php');
require_once('../core/database.php');
require_once('../core/functions.php');
require_once('../core/specials.php');

$module = new module();

$function = $_GET['function'];

switch($function) {
  case "add" :
    $module->Add($_POST,$_FILES);
    break;

  case "edit" :
    $module->Edit($_POST,$_FILES);
    break;

  case "delete" :
    $module->Delete($_GET);
    break;

  case "add-pizza":
    $module->AddPizza($_POST,$_FILES);
    break;

  case "edit-pizza":
    $module->EditPizza($_POST,$_FILES);
    break;

  case "delete-pizza" :
    $module->DeletePizza($_GET);
    break;
}
?>
